﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SOAP_Confluence_RCP.ConfluenceSOAP;

namespace SOAP_Confluence_RCP
{
    class Program
    {
        static void Main(string[] args)
        {
            ConfluenceSoapServiceService conf = new ConfluenceSoapServiceService();
            string token = conf.login("AlexTeodor", "not;;54;;");
            RemotePage page = conf.getPage(token, "SD", "Status+Dashbaord+Home");
            Console.WriteLine(page.content);
            page.content = "oh glob!";
            RemotePageUpdateOptions opts = new RemotePageUpdateOptions();
            opts.minorEdit = false;
            opts.versionComment = "some test";
            conf.updatePage(token, page, opts);


            Console.Read();

        }
    }
}
